
/**
 * @param {string} path  判断字符串是否是https?:|mailto:|tal: 开头的
 * @returns {Boolean}
 */
export const isExternal = (path: string): boolean => /^(https?:|mailto:|tel:)/.test(path);